#pragma once
#include "afxwin.h"


// CBoxManage dialog

class CBoxManage : public CDialogEx
{
	DECLARE_DYNAMIC(CBoxManage)

public:
	CBoxManage(CWnd* pParent, CMeasureProject& project);   // standard constructor
	virtual ~CBoxManage();

// Dialog Data
	enum { IDD = IDD_BOX_MANAGE };

  static void AddBox(CWnd *owner, BOOL fixStation, const tstring& stationName, const CMeasureBox* mb);
  static void DeleteBox(CWnd *owner, CMeasureBox *box);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

public:
  afx_msg void OnBoxListSelChange();
  virtual BOOL OnInitDialog();
  afx_msg void OnBoxAdd();
  afx_msg void OnBoxDelete();
  afx_msg void OnOk();

	DECLARE_MESSAGE_MAP()

private:
  CMeasureProject&  project_;
  CListBox wnd_box_list_;
  CButton wnd_box_delete_;
  int num_boxs_;
  int num_edges_;
  CString station_;
};
